import Vue from 'vue'
import Router from 'vue-router'
import Home from '../view/Home'
import AdminLogin from '../view/AdminLogin.vue'
import registerMan from '../view/registerMan'
import echartstest from '../view/echartstest'
import list from '../view/NewsManger.vue'
import Login from '../view/Login'
import ShowShop from '../view/ShowShop'
import enroll from '../view/enroll'
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Home',
      component: Home
    },
    {
      // 路由路径
      path: '/AdminLogin',
      // 路由名称
      name: 'AdminLogin',
      // 跳转到组件
      component: AdminLogin
    },
    {
      // 路由路径
      path: '/registerMan',
      // 路由名称
      name: 'registerMan',
      // 跳转到组件
      component: registerMan
    },
    {
      // 路由路径
      path: '/echartstest',
      // 路由名称
      name: 'echartstest',
      // 跳转到组件
      component: echartstest
    },
    {
      // 路由路径
      path: '/list',
      // 路由名称
      name: 'list',
      // 跳转到组件
      component: list
    },
    {
      path: '/Login',
      component:Login
    },
    {
      path: '/ShowShop',
      component: ShowShop
    },
    {
      path: '/enroll',
      component: enroll
    }
  ]
})
